package com.charwayh.demo.controller;

import com.charwayh.demo.service.IDemoService;
import com.charwayh.mvcframework.annotation.CwAutowired;
import com.charwayh.mvcframework.annotation.CwController;
import com.charwayh.mvcframework.annotation.CwRequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author charwayH
 */
@CwController
@CwRequestMapping("/demo")
public class DemoController {


    @CwAutowired
    private IDemoService demoService;


    public String query(HttpServletRequest request, HttpServletResponse response,String name){
        return demoService.get(name);
    }
}
